<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
/* 数据请求 */
const xhr=new XMLHttpRequest()
xhr.open('POST','http://localhost:8888/users/login')
xhr.onload=function(){
    let res=JSON.parse(xhr.reponseText)
    console.log(res)
}
xhr.send()
</script>
</body>
</html>